package com.example.service;

import com.example.auth.domain.User;
import com.example.config.exception.GlobalExcetion;
import com.example.pay.domain.UserMoneyAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.vo.UserMoneyVo;

/**
* @author CETC
* @description 针对表【user_money_account_0】的数据库操作Service
* @createDate 2025-11-01 18:18:45
*/
public interface UserMoneyAccountService extends IService<UserMoneyAccount> {

    public UserMoneyAccount saveUserMoneyAccount(String tableName,UserMoneyAccount userMoneyAccount) throws GlobalExcetion;

    public UserMoneyAccount updateUserMoneyAccountById(UserMoneyAccount userMoneyAccount) throws GlobalExcetion;

    public UserMoneyAccount getUserMoneyAccountById(String id) throws GlobalExcetion;

    public UserMoneyAccount getUserMoneyAccountByUserId(String userId) throws GlobalExcetion;

    //充值
    public UserMoneyAccount insertMoney(UserMoneyVo vo) throws GlobalExcetion;

    //创建用户
    public UserMoneyAccount createAccount(User user) throws GlobalExcetion;

    public UserMoneyAccount info(User user) throws GlobalExcetion;
}
